package com.jeejam.product.service;

import java.util.List;
import java.util.Map;

import com.jeejam.framework.base.service.BaseService;
import com.jeejam.product.pojo.ProductArticle;

public interface ProductArticleService extends BaseService {
	public int countsByUserId(int userId);
	
	public int countsByType(String type);
	
	public int countsForNew();
	
	public int countsForHot();
	
	public int countsForRecommend();
	
	public List<ProductArticle> findForUserId(int userId, int page, int pageSize);
	
	public List<ProductArticle> findForNew(int page, int pageSize);
	
	public List<ProductArticle> findForHot(int page, int pageSize);
	
	public List<ProductArticle> findForRecommend(int page, int pageSize);
	
	public List<ProductArticle> findByType(String type, int page, int pageSize);
	
	public int getVotes(int id);
	
	public void updateViews(int id);
	
	public void updateVotes(int votes, int id);
	
	public void recommend(int id);
	
	public void cancelRecommend(int id);
	
	public void trash(int id);
	
	public void restore(int id);
}
